#!/bin/csh 

set fnin=R46H_IPRC 
set fin=${fnin}.nc 

# seasonal data 

foreach ss (DJF JJA MAM SON) 
cdo -timavg -selseas,$ss $fin ${fnin}_${ss}.nc 
end

cdo -timavg $fin ${fnin}_ANN.nc 


